package com.Hsu.mq.mqserver.core;

import lombok.Data;

/**
 * @author Hsu琛君珩
 * @ClassName:ExchangeType
 * @date 2024-02-09
 * @apiNote
 * @Version: v1.0
 */

public enum ExchangeType {
    DIRECT(0),
    FANOUT(1),
    TOPIC(2);

    private final int type;

    private ExchangeType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }
}
